package com.mlnx.device.entity;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mlnx.common.entity.BaseEntity;
import com.mlnx.device.enums.DeviceType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * Created by amanda.shan on 2019/10/10.
 */
@Data
@Accessors(chain = true)
@ApiModel("设备表")
@TableName("t_device")
public class Device extends BaseEntity {

    @ApiModelProperty(value = "设备编号")
    private String numeration;

    @ApiModelProperty(value = "设备类型ID")
    @EnumValue
    private DeviceType deviceTypeId;

    @ApiModelProperty(value = "病人ID")
    private Integer patientId;

    @ApiModelProperty(value = "设备有效使用期")
    private Date validTime;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "设备群组ID")
    private Integer groupId;

}
